package com.rdzn.mall.portal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rdzn.mall.center.entity.SmsCoupon;
import com.rdzn.mall.center.entity.SmsCouponHistory;
import com.rdzn.mall.portal.domain.CouponHistory;

import java.util.List;

/**
 * @Description: sms_coupon
 * @Author: jeecg-boot
 * @Date:   2020-08-27
 * @Version: V1.0
 */
public interface ICouponService {

    List<SmsCoupon> listByProductId(Integer productId);

    SmsCouponHistory exchange(Integer memberId, String code);

    IPage<CouponHistory> page(IPage<SmsCouponHistory> historyIPage);

    List<SmsCouponHistory> listByMemberId(Integer memberId);

    int countByMemberId(Integer memberId);
}
